<?php include $this->tpl('public:common.php') ?>
<style type="text/css">
	.table-striped i[class^="icon-"] {font-size:1.3em;color:#333333;}
</style>
<div class="block">
	<a href="#page-stats" class="block-heading" data-toggle="collapse">支付接口列表</a>
	<div id="page-stats" class="block-body collapse in">
		<table class="table table-striped">
			<thead>
			<tr>
				<th>#</th>
				<th>接口名称</th>
				<th>是否启用</th>
				<th>排序</th>
				<th width="80px">操作</th>
			</tr>
			</thead>
			<tbody>							  
			<?php foreach($payments as $key=>$payment):?>
				<tr>
				<td><?=$payment['payment_code']?></td>
				<td><?=$payment['payment_name']?></td>
				<td><?=$payment['enabled'] ? '<i class="icon-ok"></i>' : '<i class="icon-remove"></i>'?></td>
				<td><?=$payment['sort_order']?></td>
				<td>
				<?php if($payment['enabled']>0):?>
				<a href="/os/payment/disable?code=<?=$payment['payment_code']?>" title= "停用" ><i class="icon-ban-circle"></i></a>&nbsp;
				<a href="/os/payment/config?code=<?=$payment['payment_code']?>" title= "配置" ><i class="icon-cog"></i></a>&nbsp;
				<?php else:?>
				<a href="/os/payment/config?code=<?=$payment['payment_code']?>" title= "启用" ><i class="icon-ok-circle"></i></a>&nbsp;
				<?php endif?>
				</td>
				</tr>
			<?php endforeach?>
		  </tbody>
		</table>  
	</div>
</div>

	
<?php include $this->tpl('public:footer.php') ?>